package com.itgaoshu.hospitalproject.mapper;

import com.itgaoshu.hospitalproject.bean.Litem;
import com.itgaoshu.hospitalproject.bean.Lrecord;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LitemMapper{
    //查询所有的检查项目
    List<Litem> selItems(Litem litem);

    //给该患者添加收费项目
    @Insert("insert into hospitalprice values(null,#{registerid},#{durgname},#{durgnum},#{repiceprice},#{repicetotal},now(),#{state})")
    int addItem(Lrecord lrecord);

}
